from PyQt5.QtWidgets import QWidget, QVBoxLayout, QLabel
from PyQt5.QtGui import QFont
from PyQt5.QtCore import Qt

class RightPanel(QWidget):
    def __init__(self, parent=None):
        super().__init__(parent)
        self.setup_ui()
    
    def setup_ui(self):
        """设置右侧面板界面"""
        # 主布局
        main_layout = QVBoxLayout(self)
        main_layout.setContentsMargins(0, 0, 0, 0)
        main_layout.setSpacing(0)
        
        # 标题栏
        title_bar = QWidget()
        title_bar.setFixedHeight(30)
        title_layout = QVBoxLayout(title_bar)
        title_layout.setContentsMargins(15, 5, 15, 5)
        
        title_label = QLabel("工具面板")
        title_font = QFont()
        title_font.setBold(True)
        title_label.setFont(title_font)
        title_layout.addWidget(title_label)
        
        main_layout.addWidget(title_bar)
        
        # 内容区域（占位）
        content_area = QWidget()
        content_layout = QVBoxLayout(content_area)
        content_layout.setContentsMargins(15, 10, 15, 10)
        
        # 占位文本
        placeholder_label = QLabel("功能区域待开发")
        placeholder_label.setAlignment(Qt.AlignCenter)
        content_layout.addWidget(placeholder_label)
        
        main_layout.addWidget(content_area)
        
        # 设置类名用于样式表识别
        self.setProperty("class", "right_panel")